package org.ee.system.vo;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @Author zlj
 * @Date 2025/10/3 00:25
 */
public class RouteRecord implements Serializable {
    private Long id;
    private String path;
    private String name;
    private String component;
    private Long parentId;

    private RouteMeta meta;

    private List<RouteRecord> children;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public RouteMeta getMeta() {
        return meta;
    }

    public void setMeta(RouteMeta meta) {
        this.meta = meta;
    }

    public List<RouteRecord> getChildren() {
        return children;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setChildren(List<RouteRecord> children) {
        this.children = children;
    }

    public static class RouteMeta {
        private String title;
        private String icon;
        private Boolean isHide;
        private Boolean isHideTab;
        private Boolean keepAlive;
        private Boolean isFirstLevel;
        private Boolean isFullPage;
        private Boolean showBadge;
        private String showTextBadge;
        private String link;
        private Boolean isIframe;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public Boolean getHide() {
            return isHide;
        }

        public void setHide(Boolean hide) {
            isHide = hide;
        }

        public Boolean getHideTab() {
            return isHideTab;
        }

        public void setHideTab(Boolean hideTab) {
            isHideTab = hideTab;
        }

        public Boolean getKeepAlive() {
            return keepAlive;
        }

        public void setKeepAlive(Boolean keepAlive) {
            this.keepAlive = keepAlive;
        }

        public Boolean getFirstLevel() {
            return isFirstLevel;
        }

        public void setFirstLevel(Boolean firstLevel) {
            isFirstLevel = firstLevel;
        }

        public Boolean getFullPage() {
            return isFullPage;
        }

        public void setFullPage(Boolean fullPage) {
            isFullPage = fullPage;
        }

        public Boolean getShowBadge() {
            return showBadge;
        }

        public void setShowBadge(Boolean showBadge) {
            this.showBadge = showBadge;
        }

        public String getShowTextBadge() {
            return showTextBadge;
        }

        public void setShowTextBadge(String showTextBadge) {
            this.showTextBadge = showTextBadge;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public Boolean getIframe() {
            return isIframe;
        }

        public void setIframe(Boolean iframe) {
            isIframe = iframe;
        }
    }
}
